#!/usr/bin/make -f

export MOZILLA_DIST=/usr/lib/mozilla
export GECKO_SDK=/usr/lib/xulrunner/sdk

include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

JAVA_HOME 		:= /usr/lib/jvm/java-1.5.0-sun
DEB_ANT_BUILD_TARGET 	:= buildall
DEB_JARS		:= $(JAVA_HOME)/jre/lib/deploy.jar  $(JAVA_HOME)/jre/lib/javaws.jar

install/libjdic-java::
	for i in `ls /usr/lib/libjdic-java/`; do \
		dh_link /usr/lib/libjdic-java/$$i /usr/share/java/$$i; done
	dh_link /usr/share/java/jdic.jar \
		/usr/share/java/jdic$(DEB_UPSTREAM_VERSION).jar

get-orig-source:
	sh debian/orig-tar.sh $(DEB_UPSTREAM_VERSION)	
